home *** CD-ROM | disk | FTP | other *** search
- // HostHelper.h: interface for the CHostHelper class.
- //
- //////////////////////////////////////////////////////////////////////
-
- #if !defined(AFX_HOSTHELPER_H__466DEC2B_6413_4C18_8B8B_40750020E760__INCLUDED_)
- #define AFX_HOSTHELPER_H__466DEC2B_6413_4C18_8B8B_40750020E760__INCLUDED_
-
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
-
- #include <atlbase.h>
-
- class CHostHelper
- {
- public:
- CHostHelper(IDispatch *a_pDispatch);
- virtual ~CHostHelper();
-
- public:
- BOOL NotifyError(LPCTSTR a_pszError);
- BOOL NotifyMessage(LPCTSTR a_pszMessage);
- BOOL NotifyProgress(UINT a_nCurrentStep);
- BOOL NotifyProgressTotal(UINT a_nTotalStep);
- BOOL GetProperty(LPCTSTR a_pszName, BSTR *a_pbstrValue);
-
- protected:
- BOOL CheckGetDispatchId(LPCTSTR a_pszMethodName, DISPID &ar_nDispId);
-
- private:
- CComDispatchDriver m_psDispatch;
- };
-
- #endif // !defined(AFX_HOSTHELPER_H__466DEC2B_6413_4C18_8B8B_40750020E760__INCLUDED_)
-